package com.beecode.enzyme.abrazos.core;

import org.eclipse.core.resources.ILifeCycleParticipant;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;


public class MDTParticipant implements ILifeCycleParticipant<IWorkspace>{

	@Override
	public void open(IWorkspace workspace, IProgressMonitor monitor) throws CoreException {
		TargetCollector.INSTANCE.initTargetBundles(workspace);
	}

	@Override
	public void close(IWorkspace workspace, IProgressMonitor monitor) throws CoreException {
		TargetCollector.INSTANCE.removeTargetBundles(workspace);
	}

	@Override
	public int getOrder() {
		return -919;
	}

}
